using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._CartographyTools._Generalization
{
    /// <summary>
    /// <para>Aggregate Points</para>
    /// <para>Creates polygon features around clusters of proximate point features.</para>
    /// <para>围绕邻近点要素聚类创建面要素。</para>
    /// </summary>    
    [DisplayName("Aggregate Points")]
    public class AggregatePoints : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public AggregatePoints()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_features">
        /// <para>Input Features</para>
        /// <para>The input point features that will be assessed for proximity and clustering.</para>
        /// <para>将评估邻近性和聚类的输入点要素。</para>
        /// </param>
        /// <param name="_out_feature_class">
        /// <para>Output Feature Class</para>
        /// <para>The feature class created to hold the polygons that represent the point clusters.</para>
        /// <para>为保存表示点聚类的面而创建的要素类。</para>
        /// </param>
        /// <param name="_aggregation_distance">
        /// <para>Aggregation Distance</para>
        /// <para>The distance between points that will be clustered.</para>
        /// <para>将要聚类的点之间的距离。</para>
        /// </param>
        public AggregatePoints(object _in_features, object _out_feature_class, string? _aggregation_distance)
        {
            this._in_features = _in_features;
            this._out_feature_class = _out_feature_class;
            this._aggregation_distance = _aggregation_distance;
        }
        public override string ToolboxName => "Cartography Tools";

        public override string ToolName => "Aggregate Points";

        public override string CallName => "cartography.AggregatePoints";

        public override List<string> AcceptEnvironments => ["XYResolution", "extent", "outputZFlag", "outputZValue"];

        public override object[] ParameterInfo => [_in_features, _out_feature_class, _aggregation_distance, _out_table];

        /// <summary>
        /// <para>Input Features</para>
        /// <para>The input point features that will be assessed for proximity and clustering.</para>
        /// <para>将评估邻近性和聚类的输入点要素。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Features")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_features { get; set; }


        /// <summary>
        /// <para>Output Feature Class</para>
        /// <para>The feature class created to hold the polygons that represent the point clusters.</para>
        /// <para>为保存表示点聚类的面而创建的要素类。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output Feature Class")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _out_feature_class { get; set; }


        /// <summary>
        /// <para>Aggregation Distance</para>
        /// <para>The distance between points that will be clustered.</para>
        /// <para>将要聚类的点之间的距离。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Aggregation Distance")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public string? _aggregation_distance { get; set; }


        /// <summary>
        /// <para>Relationship Table</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Relationship Table")]
        [Description("")]
        [Option(OptionTypeEnum.derived)]
        public object _out_table { get; set; }


        public AggregatePoints SetEnv(object XYResolution = null, object extent = null, object outputZFlag = null, object outputZValue = null)
        {
            base.SetEnv(XYResolution: XYResolution, extent: extent, outputZFlag: outputZFlag, outputZValue: outputZValue);
            return this;
        }

    }

}